#ifndef SVPWM_H
#define SVPWM_H

#include "gd32f30x.h"

typedef struct
{
    int32_t Ualpha;
    int32_t Ubeta;

    int32_t Ta;
    int32_t Tb;
    int32_t Tc;

    int32_t tmp1;
    int32_t tmp2;
    int32_t tmp3;

    uint16_t vecSector;
}SVGEN;

#define SVGEN_DEFAULTS {0, 0, 0, 0, 0}

void SVPWM_Run(SVGEN *v);

#endif /* SVPWM_H */
